package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IUmAppInfoDao;
import org.jsbd.boss.domian.UmAppInfo;

public class UmAppInfoDaoImpl extends UmengBrushBaseDao implements IUmAppInfoDao {

	@Override
	public void save(UmAppInfo umAppInfo) {
		super.insert("um_app_info.insert_um_app_info", umAppInfo);
	}

	@Override
	public void save(List<UmAppInfo> list) {
		super.batchInsert("um_app_info.insert_um_app_info", list);
	}

	@Override
	public int update(UmAppInfo umAppInfo) {
		return super.update("um_app_info.update_um_app_info", umAppInfo);
	}

	@Override
	public UmAppInfo getById(Integer id) {
		return (UmAppInfo) super.queryForObject("um_app_info.select_by_id", id);
	}

	@SuppressWarnings("unchecked")
	@Override
	public List<UmAppInfo> getList(UmAppInfo umAppInfo) {
		return super.queryForList("um_app_info.select_um_app_info_list", umAppInfo);
	}

	@Override
	public Integer getListPageCount(UmAppInfo umAppInfo) {
		return super.queryForCount("um_app_info.select_um_app_info_page_count", umAppInfo);
	}
	
	@Override
	public void delete(List<Integer> ids) {
		super.batchUpdate("um_app_info.delete_um_app_info", ids);
	}
	
}
